﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.ExportToRTR.CApExportToRTRInertia
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll


namespace DnProcessSimulateCommands.ExportToRTR{

internal class CApExportToRTRInertia : ICApExportToRTRWriteable
{
  public double m_ixx;
  public double m_ixy;
  public double m_ixz;
  public double m_iyy;
  public double m_iyz;
  public double m_izz;

  public CApExportToRTRInertia(
    double ixx,
    double ixy,
    double ixz,
    double iyy,
    double iyz,
    double izz)
  {
    this.m_ixx = ixx;
    this.m_ixy = ixy;
    this.m_ixz = ixz;
    this.m_iyy = iyy;
    this.m_iyz = iyz;
    this.m_izz = izz;
  }

  public void Write(CApExportToRTRXmlWriter writer)
  {
    writer.WriteStartElement("inertia");
    writer.WriteAttributeString("ixx", this.m_ixx.ToString() ?? "");
    writer.WriteAttributeString("ixy", this.m_ixy.ToString() ?? "");
    writer.WriteAttributeString("ixz", this.m_ixz.ToString() ?? "");
    writer.WriteAttributeString("iyy", this.m_iyy.ToString() ?? "");
    writer.WriteAttributeString("iyz", this.m_iyz.ToString() ?? "");
    writer.WriteAttributeString("izz", this.m_izz.ToString() ?? "");
    writer.WriteEndElement();
  }
}
